{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "dumb,dumb\n",
      "down!\n"
     ]
    }
   ],
   "source": [
    "# -- coding:utf-8 --\n",
    "import numpy as np\n",
    "import cv2\n",
    "import tqdm\n",
    "\n",
    "path = \"test.mp4\"\n",
    "\n",
    "cap = cv2.VideoCapture(path)#cap仅仅是摄像头的一个对象\n",
    "fps = cap.get(cv2.CAP_PROP_FPS) #获取视频的帧率\n",
    "size = (int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)),\n",
    "        int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)))#获取视频的大小\n",
    "fourcc = cv2.VideoWriter_fourcc(*'XVID')#指定编码格式，Windows使用XVID，注意该写法是固定的\n",
    "out = cv2.VideoWriter('output.avi',fourcc,fps,size,True)\n",
    "#定义一个视频存储对象，以及视频编码方式,帧率，视频大小格式,最后一项设定灰度图（默认为True彩色，但试了一下改成False视频生成会出错）\n",
    "\n",
    "while (cap.isOpened()):\n",
    "    ret,frame = cap.read()\n",
    "#     print(frame)\n",
    "    if ret == True:\n",
    "# frame = cv2.flip(frame,0)#将图像翻转\n",
    "#         print(frame.type)\n",
    "        out.write(frame)#保存每一帧合并成视频\n",
    "        print('dumb,dumb')\n",
    "        cv2.imshow('frame',frame)\n",
    "        cv2.waitKey(40)\n",
    "#         if cv2.waitKey(25) == ord('q'):\n",
    "#             break\n",
    "    else:\n",
    "        break\n",
    "print(\"down!\")\n",
    "cap.release()\n",
    "out.release()\n",
    "cv2.destroyAllWindows()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
